<%--
	 +----------------------------------------------------------------------+
	 |																		|
	 | 贝宝 配置文件															|
	 |																		|		
	 +----------------------------------------------------------------------+
--%>
<%@ include file="/common/taglibs.jsp"%>
<probiz:pageHeading pageHeading="Paypal Gateway Parameters Settings" />
<content tag="buttons">
	<probiz:iconBtn btnType="save" onclick="return fnDoAction(this, 'saveConfigAction');" />
	<probiz:iconBtn btnType="back" url="${ctxPath}/system/paymentMethod.html" />
</content>
<div class="top clearfix">
	<ul class="tab">
		<li class="curr"><span>Paypal Gateway Parameters Settings</span></li>
	</ul>
</div>
<div class="modify">
	<form class="mainForm" name="configForm" id="configForm" method="post" action="paymentMethod.html" onsubmit="return validateFormWithMsg(this);">
	<input type="hidden" name="paymentGatewayId" value="${paymentGateway.paymentGatewayId}"/>
		<table  width="100%" border="0" cellspacing="0" cellpadding="0" class="com_modi_table">
			<tr>
				<th colspan="2" class="title"><h4><fmt:message key="system.pay.en.shuo"/></h4></th>
			</tr>
			<tr>
				<th colspan="2" >
					<IMG alt="paypal" src="<c:url value="/pages/system/${paymentGateway.gatewayIcon}"/>"/>
					<ul class="intro">
						<li>Please get a new account from <a href="http://www.paypal.com.cn" target="_blank" style="color:red;text-decoration: underline">Paypal</a></li>
						<li>Please fill the form below accord with the paypal account.</li>
					</ul>
				</th>
			</tr>
			<tr>
				<th colspan="2" class="title"><h4><fmt:message key="system.paymentGateway.en.configItem"/></h4></th>
			</tr>
			<tr>
				<th class="label_width_1">
					Merchant Email(<span class="red">*</span>):
				</th>
				<td>
					<input class="inputtxt" style="width: 350px" name="business" value="${paymentGateway.configData.business}" validConf="required,maxlength=100"/>
				</td>
			</tr>
			
			<tr>
				<th>
					Currency(<span class="red">*</span>):
				</th>
				<td>
					<select  style="width:200px" class="selecttxt" name="currency_code" validConf="required">
						<option value="USD" <c:if test="${paymentGateway.configData.currency_code=='USD'}">selected</c:if>>U.S. Dollars (USD)</option>
						<option value="CAD" <c:if test="${paymentGateway.configData.currency_code=='CAD'}">selected</c:if>>Canadian Dollars (CAD)</option>
						<option value="EUR" <c:if test="${paymentGateway.configData.currency_code=='EUR'}">selected</c:if>>Euros (EUR)</option>
						<option value="GBP" <c:if test="${paymentGateway.configData.currency_code=='GBP'}">selected</c:if>>Pounds Sterling (GBP)</option>
						<option value="JPY" <c:if test="${paymentGateway.configData.currency_code=='JPY'}">selected</c:if>>Yen (JPY)</option>
						<option value="AUD" <c:if test="${paymentGateway.configData.currency_code=='AUD'}">selected</c:if>>Australian Dollars (AUD)</option>
					</select>								
				</td>
			</tr>
	
			<tr> 
				<th>
					Test/Live Mode(<span class="red">*</span>):
				</th>
				<td>
					<select name="type" style="width:200px" class="selecttxt" validConf="required">
						<option value="0" <c:if test="${paymentGateway.configData.type=='0'}">selected</c:if>>Test</option>
						<option value="1" <c:if test="${paymentGateway.configData.type=='1'}">selected</c:if>>Live</option>
					</select>
				</td>
			</tr> 
		</table>
	</form>
</div>

<script>
$j(document).ready(function(){
	autoApplyValidate($j('#configForm')[0]);
});
</script>
